<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
    public function index(){
    	 $username = "admin";
        // 数组
        $otherinfo = array();
        $otherinfo['email'] = 'admin@5idev.com';
        $otherinfo['regdate'] = '1281030876';
        // 模板变量赋值
        $this->assign( "username", $username );	
        $this->assign( "otherinfo", $otherinfo );
        //输出模板
        $this->display();
    }

    public function other(){
    	$this->display('Other:other','utf-8','text/html');
    }

    function sayhello($var = ''){
    	echo "hello ".$var;
    }
}